<script setup lang="ts">
import { reactive, toRefs } from 'vue';
var user = reactive({id:1,name:'张三',age:19})
var {id,name,age} = toRefs(user)
</script>
<template>
  {{ id }} -- {{ name }} -- {{ age }}
  <br>
  <button @click="id++">id++</button>
</template>
<style scoped></style>